const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 添加可以直接使用的token
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  companyName: state => state.user.userInfo.companyName,
  userId: state => state.user.userInfo.userId,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId

}
export default getters
